package cz.worktracker.model.entities;
// Generated 19.4.2010 0:35:56 by Hibernate Tools 3.2.1.GA


import java.util.Date;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.UniqueConstraint;

/**
 * Project generated by hbm2java
 */
@Entity
@Table(name="project"
    ,catalog="pis10"
    , uniqueConstraints = @UniqueConstraint(columnNames="code") 
)
public class Project  implements java.io.Serializable {


     private Integer id;
     private int idCustomer;
     private int idUser;
     private String name;
     private String code;
     private String password;
     private Float pricePerRateUnit;
     private String rateType;
     private Date create;
     private Integer timeEstimation;
     private String note;
     private String isActive;

    public Project() {
    }

	
    public Project(int idCustomer, int idUser, String name, float pricePerRateUnit, String rateType, Date create, String isActive) {
        this.idCustomer = idCustomer;
        this.idUser = idUser;
        this.name = name;
        this.pricePerRateUnit = pricePerRateUnit;
        this.rateType = rateType;
        this.create = create;
        this.isActive = isActive;
    }
    public Project(int idCustomer, int idUser, String name, String code, String password, float pricePerRateUnit, String rateType, Date create, Integer timeEstimation, String note, String isActive) {
       this.idCustomer = idCustomer;
       this.idUser = idUser;
       this.name = name;
       this.code = code;
       this.password = password;
       this.pricePerRateUnit = pricePerRateUnit;
       this.rateType = rateType;
       this.create = create;
       this.timeEstimation = timeEstimation;
       this.note = note;
       this.isActive = isActive;
    }
   
     @Id @GeneratedValue(strategy=IDENTITY)
    
    @Column(name="id", unique=true, nullable=false)
    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    
    @Column(name="id_customer", nullable=false)
    public int getIdCustomer() {
        return this.idCustomer;
    }
    
    public void setIdCustomer(int idCustomer) {
        this.idCustomer = idCustomer;
    }
    
    @Column(name="id_user", nullable=false)
    public int getIdUser() {
        return this.idUser;
    }
    
    public void setIdUser(int idUser) {
        this.idUser = idUser;
    }
    
    @Column(name="name", nullable=false, length=32)
    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    @Column(name="code", unique=true, length=32)
    public String getCode() {
        return this.code;
    }
    
    public void setCode(String code) {
        this.code = code;
    }
    
    @Column(name="password", length=64)
    public String getPassword() {
        return this.password;
    }
    
    public void setPassword(String password) {
        this.password = password;
    }
    
    @Column(name="pricePerRateUnit", nullable=false, precision=12, scale=0)
    public Float getPricePerRateUnit() {
        return this.pricePerRateUnit;
    }
    
    public void setPricePerRateUnit(Float pricePerRateUnit) {
        this.pricePerRateUnit = pricePerRateUnit;
    }
    
    @Column(name="rateType", nullable=false, length=1)
    public String getRateType() {
        return this.rateType;
    }
    
    public void setRateType(String rateType) {
        this.rateType = rateType;
    }
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="`create`", nullable=false, length=19)
    public Date getCreate() {
        return this.create;
    }
    
    public void setCreate(Date create) {
        this.create = create;
    }
    
    @Column(name="timeEstimation")
    public Integer getTimeEstimation() {
        return this.timeEstimation;
    }
    
    public void setTimeEstimation(Integer timeEstimation) {
        this.timeEstimation = timeEstimation;
    }
    
    @Column(name="note")
    public String getNote() {
        return this.note;
    }
    
    public void setNote(String note) {
        this.note = note;
    }
    
    @Column(name="isActive", nullable=false, length=1)
    public String getIsActive() {
        return this.isActive;
    }
    
    public void setIsActive(String isActive) {
        this.isActive = isActive;
    }

}


